/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Business;

import java.util.ArrayList;
import java.util.Date;
import tuitionmanagement.DAO.StaticticsDao;
import tuitionmanagement.entity.StaticticEntity;

/**
 *
 * @author XUAN
 */
public class StaticticBuss {

    StaticticsDao stdao= new StaticticsDao();
    private String lastError;

    public ArrayList<StaticticEntity> getStaticticExamByClassNameDate(String classname, Date searchFrom, Date searchTo) {
        return stdao.getStaticticExamByClassNameDate(classname,searchFrom,searchTo);
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    public ArrayList<StaticticEntity> getStaticticNoExamByClassNameDate(String classname, Date searchFrom, Date searchTo) {
        return stdao.getStaticticNoExamByClassNameDate(classname, searchFrom, searchTo);
    }

    public ArrayList<StaticticEntity> getStaticticByDate(Date searchFrom, Date searchTo) {
        return  stdao.getStaticticByDate(searchFrom,searchTo);
    }

}
